@inherits PartialViewMacroPage
@using Umbraco.Cms.Web
@using Umbraco.Cms.Web.Macros
@using Umbraco.Framework
@{
if(!String.IsNullOrEmpty(Model.MacroParameters.MediaPickerPropAlias) && !String.IsNullOrEmpty(DynamicModel[Model.MacroParameters.MediaPickerPropAlias]))
{
  var media =  Umbraco.GetDynamicContentById(DynamicModel[Model.MacroParameters.MediaPickerPropAlias]);
  <img src="@media.Url" alt="@media.Name" title="@media.Name" />
}
}
